package EvaTCPL;

public class EvaTCPLgdist extends EvaTCPLaexpression
{

  public EvaTCPLgdist(EvaTCPLaexpression e1)
    {
      super(e1);
    }

  /** Evaluate this arithmetic expression. */
  public double evaluate()
    {
      return (Math.floor(Math.log(1-Math.random())/Math.log(1-sons[0].evaluate())));
    }

  public String toString()
    {
      return "gdist("+sons[0].toString()+")";
    }


}
